/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconSecured: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M479.328 105.888a96 96 0 0 1 65.6 0l287.904 104.704A96 96 0 0 1 896 300.832v173.44c0 147.68-66.88 287.456-181.888 380.096l-5.984 4.8a312.544 312.544 0 0 1-392.064 0.096l-6.112-4.928A487.904 487.904 0 0 1 128 474.24V300.8a96 96 0 0 1 63.2-90.24z m43.744 60.16a32 32 0 0 0-21.888 0L213.056 270.72a32 32 0 0 0-21.056 30.08v173.44c0 128.32 58.112 249.728 158.08 330.208l6.144 4.928a248.544 248.544 0 0 0 311.776-0.064l5.952-4.8A424.128 424.128 0 0 0 832 474.24V300.8a32 32 0 0 0-21.056-30.08z m139.552 227.328a32 32 0 0 1 2.656 42.24l-2.656 3.008-160 160a32 32 0 0 1-42.24 2.656l-3.008-2.656-96-96.064a32 32 0 0 1 42.24-47.904l3.008 2.656L480 530.72l137.408-137.344a32 32 0 0 1 45.248 0z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconSecured.defaultProps = {
  size: 18,
};

export default IconSecured;
